home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000066_icon-group-sender _Thu Mar 7 08:53:52 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Thu, 7 Mar 1996 13:07:36 MST
To: icon-group@cs.arizona.edu
Date: Thu, 07 Mar 1996 08:53:52 -0700
From: Steve Wampler <swampler@gemini.edu>
Message-Id: <313F0690.6BBD@gemini.edu>
Organization: Gemini 8m Telescopes Project
Sender: icon-group-request@cs.arizona.edu
Subject: 'right-handed' operators
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
I'm not I'd be in favor of adding any more operators to Icon, which
has already taken more than its share. Why not just use the following
for those (hopefully rare) cases where the right-hand side value is
needed:
rhsv("<",e1,e2)
where rhsv is:
procedure rhsv(op, l, r)
return if op(l,r) then r
end
You could even eliminate the first argument if you wanted to write
operator-specific versions:
procedure rhlt(l,r)
return if l<r then r
end
--
Steve Wampler - swampler@gemini.edu [Gemini 8m Telescopes Project (under
AURA)]
The Gods that smiled upon your birth are laughing now. -- fortune cookie